package controllers

import (
	"zhoubao/esc"
	"zhoubao/orm"

	"gitee.com/konyshe/gogo"
)

func Index(ctx *gogo.HTTPContext) {
	tmplDataMap := make(map[string]interface{})
	tmplDataMap["config"], _ = orm.GetConfigMap()

	tmplContent, _ := esc.FSString(false, "/views/index.html")

	ctx.WriteParse(tmplDataMap, tmplContent)
}
